package com.hzz.dto.user;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.hzz.framework.dto.BaseDto;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel("权限_角色vs组织 DTO")
public class AuthRoleVsOrgDto extends BaseDto {
    /**
     * 角色id
     */
    @NotNull(message = "roleId不能为空")
    Long roleId;
    /**
     * 组织id
     */
    @NotNull(message = "orgId不能为空")
    Long orgId;
    /**
     * 建立者id
     */
    Long createId;
    /**
     * 创建时间
     */
    Date dateCreated;

}
